<?php
/**
 * Created by PhpStorm.
 * User: wubiaoyang
 * Date: 15-7-5
 * Time: 下午2:43
 */

class mobileapi_mdl_sales_goods extends dbeav_model{
    public function pre_recycle($row){
        $return = true;
        foreach($row as $v){
            if($v['rule_id'] == 1 || $v['rule_id'] == 2 || $v['rule_id'] == 7){
                $this->recycle_msg .= $v['name'].' ';
                $return = false;
            }
        }
        $this->recycle_msg .= $return ? '' : '页面无法删除，此页面为系统页面';
        return $return;
    }
}